$.ajaxPrefilter(function(options) {
    options.url = 'http://localhost:8888' + options.url

    // 携带参数
    if (options.url.indexOf('/admin/') !== -1) {
        options.headers = {
            Authorization: localStorage.getItem('token') || ''
        };
    }
})